home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / dless-li / root.no / etc / rc.d / rc.inet1 < prev    next >
Text File  |  1995-04-26  |  1KB  |  36 lines

  1. #! /bin/sh
  2. #
  3. # rc.inet1    This shell script boots up the base INET system.
  4. #
  5. # Version:    @(#)/etc/rc.d/rc.inet1    1.01    05/27/93
  6. #
  7.  
  8. HOSTNAME=`cat /etc/HOSTNAME`
  9.  
  10. # Attach the loopback device.
  11. /sbin/ifconfig lo 127.0.0.1
  12. /sbin/route add -net 127.0.0.0
  13.  
  14. # IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the 
  15. # eth0 interface. If you're only using loopback or SLIP, don't include the
  16. # rest of the lines in this file.
  17.  
  18. # Edit for your setup.
  19. IPADDR="163.178.101.34"    # REPLACE with YOUR IP address!
  20. NETMASK="255.255.255.192"    # REPLACE with YOUR netmask!
  21. NETWORK="163.178.101.0"    # REPLACE with YOUR network address!
  22. BROADCAST="163.178.101.63"    # REPLACE with YOUR broadcast address, if you
  23.             # have one. If not, leave blank and edit below.
  24. GATEWAY="163.178.101.1"    # REPLACE with YOUR gateway address!
  25.  
  26. # Uncomment ONLY ONE of the three lines below. If one doesn't work, try again.
  27. # /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
  28. /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
  29. # /sbin/ifconfig  eth0 ${IPADDR} netmask ${NETMASK} 
  30.  
  31. # Uncomment these to set up your IP routing table.
  32. /sbin/route add -net ${NETWORK} netmask ${NETMASK}
  33. /sbin/route add default gw ${GATEWAY} metric 1
  34.  
  35. # End of rc.inet1
  36.